/** 替换emoji表情 */

function filterEmoji(name) {

  var str = name.replace(/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig, "");

  return str;

}

/** 替换空格键2 */

function filterSpace(name) {

  var str = name.replace(/\s+/g, '');

  return str;

}

/**订单申请状态 */
function applyListResponsesStatus(status) {

  var str ='';
  if(status==0){
    str ='申请中';
  }else if (status == 1) {
    str = '同意受理';
  }else if (status == 2) {
    str = '处理完成';
  }else if (status == 3) {
    str = '被驳回';
  }else if (status == 4) {
    str = '用户撤回';
  }
  return str;

}



module.exports = {

  filterEmoji: filterEmoji,

  filterSpace: filterSpace

}
